/*
 * @Author: ipk518 121206530@qq.com
 * @Date: 2023-07-06 10:41:18
 * @LastEditors: ipk518 18163976442@163.com
 * @LastEditTime: 2023-08-19 15:33:22
 * @FilePath: \WingsUpdater-main\inc\Wings.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

#pragma once 

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <stddef.h>


namespace Wings 
{
extern  void wingInit(void);
extern  const char *errorInfo(int32_t code);
extern  uint32_t majorVer(void);
extern  uint32_t minorVer(void);
extern  uint32_t patchVer(void);
extern  size_t maxSize(void);
extern  int32_t setMaxSize(size_t size);
extern  const char *mountPoint(void);
extern  int32_t setMountPoint(const char *path);
extern  bool mounted(void);
extern  int32_t mount(void);
extern  int32_t umount(void);
extern  int32_t setFilePath(const char *filePath);
extern  int32_t decompressBinary(const uint8_t *src, size_t size, const char *fileName);
extern  int32_t updatePackage(void);
extern  void setConfiguration(const char *fileName);
}
